
import React, { Component } from 'react';
import {
  StyleSheet,
  Text,
  View,
  Image,Dimensions
} from 'react-native';
const {height, width} = Dimensions.get('window');
export default class BottomView extends Component {
  render() {
    return (
      <View style={[styles.container,{backgroundColor:this.props.bgColor}]}>
        <View style={[styles.lineStyle,{backgroundColor:this.props.lineColor}]}>
          
        </View>
        <Text style={{marginLeft:10,marginRight:10,color:this.props.color}}>{this.props.text}</Text>
        <View style={[styles.lineStyle,{backgroundColor:this.props.lineColor}]}>
         
        </View>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    height:60,
    flexDirection:'row',
    justifyContent:'center',
    alignItems:'center',
  },
  lineStyle:{
    height:1,
    width:width/4,
  },
  rightViewStyle:{
    flexDirection:'row',
    alignItems:'center',
  }
});
